import request from '@/utils/request'

/**
 * 获取用户对应的权限菜单，通过token
 * @param username
 * @param password
 * @param code
 * @param uuid
 */
export function getUserMenuByAppId() {
  return request({
    url: 'menu/getUserMenuByAppId',
    method: 'post',
    data: {
      appId: '1'
    }
  })
}
export function save(data) {
  return request({
    url: 'menu/save',
    method: 'post',
    data
  })
}

export function del(id) {
  return request({
    url: 'menu/remove/' + id,
    method: 'post'
  })
}

export function update(data) {
  return request({
    url: 'menu/update',
    method: 'post',
    data
  })
}
export function getMenuByAppId(appId) {
  return request({
    url: 'menu/getMenuByAppId?appId=' + appId,
    method: 'post'
  })
}

